package com.syslight.annotationdemo.orm;

import com.j256.ormlite.field.DatabaseField;

/**
 * Created by syslight on 14-7-4.
 */

public class User {

    @DatabaseField(id=true)
    private String uid;
    @DatabaseField
    private String name;
    @DatabaseField
    private String sex;

    public User() {

    }

    public User(String uid, String name, String sex) {
        this.uid = uid;
        this.name = name;
        this.sex = sex;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "uid: " + uid + " name: " + name + " sex:" + sex;
    }
}
